import React from 'react'
import classNames from 'classnames'
import './index.scss';

export default (props) => {
  let { onClick=()=>{}, checked, className, disabled, text } = props;

  let classname = classNames(
    'radio',
    className,
    { disabled, checked }
  );

  return (
    <div className={classname} onClick={onClick}>
      <div className="radio-bd"></div>
      {text && <div className="radio-text">{text}</div>}
    </div>
  );
}
